package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.gusha.model.ReceivingAddress;
import com.gusha.model.User;

@Repository
public interface ReceivingAddressDao extends JpaRepository<ReceivingAddress, BigInteger>,JpaSpecificationExecutor<ReceivingAddress>{

	List<ReceivingAddress> findAllByUser(User user);

	ReceivingAddress findAllById(BigInteger bigInteger);

}
